<%@ page import="com.cisite.cont.Channel" %>


<g:hiddenField name="parentId" value="${fieldValue(bean: channelInstance, field: 'parentId')}"/>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'channelName', 'error')} ">
	<label for="channelName">
		<g:message code="channel.channelName.label" default="频道" />
	</label>
	<g:textField name="channelName" value="${channelInstance?.channelName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'visitPath', 'error')} ">
	<label for="visitPath">
		<g:message code="channel.visitPath.label" default="访问路径" />
	</label>
	<g:textField name="visitPath" value="${channelInstance?.visitPath}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'priority', 'error')} required">
	<label for="priority">
		<g:message code="channel.priority.label" default="优先级" />
	</label>
	<g:field type="number" name="priority" value="${channelInstance?.priority}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'metaTitle', 'error')} ">
	<label for="metaTitle">
		<g:message code="channel.metaTitle.label" default="标题" />
	</label>
	<g:textField name="metaTitle" value="${channelInstance?.metaTitle}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'metaKeyWords', 'error')} ">
	<label for="metaKeyWords">
		<g:message code="channel.metaKeyWords.label" default="关键字" />
	</label>
	<g:textField name="metaKeyWords" value="${channelInstance?.metaKeyWords}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'metaDescript', 'error')} ">
	<label for="metaDescript">
		<g:message code="channel.metaDescript.label" default="描述" />
	</label>
	<g:textField name="metaDescript" value="${channelInstance?.metaDescript}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'link', 'error')} ">
	<label for="link">
		<g:message code="channel.link.label" default="外部链接" />
	</label>
	<g:textField name="link" value="${channelInstance?.link}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'isStaticChannel', 'error')} required">
	<label for="isStaticChannel">
		<g:message code="channel.isStaticChannel.label" default="栏目静态化" />
	</label>
	<g:checkBox name="isStaticChannel" checked="${channelInstance?.isStaticChannel}" value="1"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'isStaticCont', 'error')} required">
	<label for="isStaticCont">
		<g:message code="channel.isStaticCont.label" default="内容静态化" />
	</label>
	<g:checkBox name="isStaticCont" checked="${channelInstance?.isStaticCont}" value="1"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'hasTitleImg', 'error')} required">
	<label for="hasTitleImg">
		<g:message code="channel.hasTitleImg.label" default="标题缩略图" />
	</label>
	<g:checkBox name="hasTitleImg" checked="${channelInstance?.hasTitleImg}" value="1"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'hasContImg', 'error')} required">
	<label for="hasContImg">
		<g:message code="channel.hasContImg.label" default="内容缩略图" />
	</label>
    <g:checkBox name="hasContImg" checked="${channelInstance?.hasContImg}" value="1"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'isComment', 'error')} required">
	<label for="isComment">
		<g:message code="channel.isComment.label" default="允许评论" />
	</label>
	<g:checkBox name="isComment" checked="${channelInstance?.isComment}" value="1"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'isUpdown', 'error')} required">
	<label for="isUpdown">
		<g:message code="channel.isUpdown.label" default="允许顶踩"/>
	</label>
	<g:checkBox name="isUpdown" checked="${channelInstance?.isUpdown}" value="1"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'isBlank', 'error')} required">
	<label for="is_blank">
		<g:message code="channel.isBlank.label" default="新窗口打开" />
	</label>
		<g:checkBox name="isBlank" checked="${channelInstance?.isBlank}" value="1"/>
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'tplChannel', 'error')} ">
	<label for="tplChannel">
		<g:message code="channel.tplChannel.label" default="栏目页模版" />
	</label>
    <g:select name="tplChannel" optionKey="tplChannel" optionValue="queryShow"
       from="${[[tplChannel:'1',queryShow:"一级栏目"],[tplChannel:'2',queryShow:"二级栏目"]]}"  value="${fieldValue(bean: channelInstance, field: 'tplChannel')}" >
    </g:select>  
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'tplCont', 'error')} ">
	<label for="tplCont">
		<g:message code="channel.tplCont.label" default="内容页模版" />
	</label>
	<g:select name="tplCont" optionKey="tplCont" optionValue="queryShow"
       from="${[[tplCont:'1',queryShow:"一级内容"],[tplCont:'2',queryShow:"二级内容"]]}"  value="${fieldValue(bean: channelInstance, field: 'tplCont')}" >
    </g:select>  
</div>

<div class="fieldcontain ${hasErrors(bean: channelInstance, field: 'pageSize', 'error')} required">
	<label for="pageSize">
		<g:message code="channel.pageSize.label" default="单页记录数" />
	</label>
	<g:field type="number" name="pageSize"  value="${channelInstance?.pageSize}"/>
</div>





